package cn.wym.ymbill.service.impl

import cn.wym.ymbill.mapper.BillPlanBeenMapper
import cn.wym.ymbill.model.BillPlanBeen
import cn.wym.ymbill.service.IBillPlanService
import org.springframework.stereotype.Service
import javax.annotation.Resource

/**
 * 账单计划
 */
@Service("BillPlanService")
class BillPlanService : IBillPlanService {
    
    @Resource
    val billPlanBeenMapper: BillPlanBeenMapper? = null

    override fun deleteByPrimaryKey(id: Int): Int {
        return billPlanBeenMapper?.deleteByPrimaryKey(id)?: -1
    }

    override fun insert(record: BillPlanBeen): Int {
        return billPlanBeenMapper?.insert(record)?: -1
    }

    override fun insertSelective(record: BillPlanBeen): Int {
        return billPlanBeenMapper?.insertSelective(record)?: -1
    }

    override fun selectByPrimaryKey(id: Int): BillPlanBeen? {
        return billPlanBeenMapper?.selectByPrimaryKey(id)
    }

    override fun updateByPrimaryKeySelective(record: BillPlanBeen): Int {
        return billPlanBeenMapper?.updateByPrimaryKeySelective(record)?: -1
    }

    override fun updateByPrimaryKey(record: BillPlanBeen): Int {
        return billPlanBeenMapper?.updateByPrimaryKey(record)?: -1
    }

}